package com.sharding.ex.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharding.ex.model.ProductOrderItemDto;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : xuzhennan
 * @Project : sharding_ex
 * @Package : com.sharding.ex.mapper
 * @email : xuzhennan@58.com
 * @date : 2022年05月12日 下午3:16
 */
@Repository
public interface ProductOrderItemMapper extends BaseMapper<ProductOrderItemDto> {

  @Select("select * from product_order p left join product_order_item o on p.id = o.product_order_id")
  List<Object> orderDetails();
}
